<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="js/jquery.min.js"></script>
<script>
    var pid = window.location.search;
    pid = pid.substring(1);

    $.get("getProject.jhtml?"+pid,function (p) {
        for(var attr in p){
            $("[name="+attr+"]").val(p[attr]);
        }
    },"json");


</script>
<body>
<table>
    <form action="" method="post" id="pform">
        <tr><td>*项目名称：</td><td><input type="text" name="projectName" required></td></tr>
        <tr><td>*项目类型：</td><td><input type="text" name="projectCategory" required></td></tr>
        <tr><td>*专家人数：</td><td><input type="text" name="professorNum" required></td></tr>
        <tr><td>*项目状态：</td><td><select name="isEvaluated">
            <option value="1" selected>待抽签</option>
            <option value="2">随机抽签中</option>
            <option value="3">补抽中</option>
            <option value="4">抽签已完成</option>
            <option value="5">登记成功</option>
        </select></td></tr><!--1待抽签 ;2随机抽签中；3补抽中； 4抽签已完成（待登记） 5登记成功-->
        <tr><td>*采购方式：</td><td><input type="text" name="prochaseMode" required></td></tr>
        <tr><td>*预算：</td><td><input type="text" name="budget" required></td></tr>
        <tr><td>*采购公告时间：</td><td><input type="date" name="announceDate" required></td></tr>
        <tr><td>*开标时间：</td><td><input type="date" name="openDate" required></td></tr>
        <tr><td>*开标地点：</td><td><input type="text" name="address" required></td></tr>
        <tr><td>项目联系人姓名：</td><td><input type="text" name="linkMan"></td></tr>
        <tr><td>项目联系人电话：</td><td><input type="text" name="mobliePhone"></td></tr>
        <tr><td>项目文件：</td><td><input type="file" name="document"></td></tr>
        <tr><td>*创建者：</td><td><input type="text" name="createBy" required></td></tr>
        <tr><td>创建时间：</td><td><input type="date" name="createDate"></td></tr>
        <tr><td><input type="submit" value="修改"></td></tr>
    </form>
</table>
</body>
</html>